@import 'compass';
@import "mixins.scss";

.setSendInfo {
  width: 260px;
  @include flex-shrink(0);
}
.setSendInfo {
  height: 100%;
  background: #e2e2e2;
  overflow: auto;
  .infoTitle {
    font-size: 18px;
    margin: 24px 0 24px 24px;
    font-weight: 200;
  }
  .description {
    margin-left: 24px;
    margin-bottom: 12px;
  }
  .chooseService {
    width: 180px;
    height: 28px;
    line-height: 28px;
    margin: 0 24px 0 24px;
    color: #999;
    background: #fff;
    padding-left: 6px;
    background-image: image-url('left-s.png');
    background-position: 150px center;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    @include padding-right(24px);
    &.expendList {
      background-image: image-url('tri.png');
    }
  }
  .serviceListCheck,.serviceListChecked {
    width: 180px;
    height: 266px;
    margin: 0 24px 0 24px;
    background: #fff;
    border: 1px solid #ccc;
    @include align-items(center);
    input[type='checkbox'] {
      margin-right: 8px;
    }
    .submitCheck {
      width: 72px;
      margin: 8px 0;
    }
  }
  .serviceListChecked {
    height: auto;
    max-height: 180px;
    background: none;
    border:none;
  }
  .checkList,.checkedList {
    @include padding2(0, 6px);
    overflow: auto;
    width: 100%;
    .listItem:hover {
      background: none !important;
    }
  }
  .checkedList {
    padding-left: 0;
  }
  .sendContentAndType {
    @include padding2(0, 24px);
    @include flex-grow(1);
    .subTitle,.quickReplyTitle {
      height: 24px;
      line-height: 24px;
      font-size: 16px;
      margin: 8px 0;
      padding-left: 0 !important;
    }
    .radioContainer span {
      margin-right: 16px;
      margin-left: 4px;
    }
    .addQuickReply {
      @include flex-wrap(wrap);
      padding-left: 0;
      padding-right: 0;
    }
    .addQuickReply button {
      margin-bottom: 8px;
      margin-left: 0;
      margin-right: 10px;
    }
    .quickReplies {
      @include flex-grow(1);
      padding: 12px 8px 0 0 !important;
      @include box-sizing(border-box);
    }
    .quickReplyTitle {
      @include padding2(0, 12px);
      margin-top: 10px;
      margin-bottom: 0 !important;
      height: 36px;
      line-height: 36px;
    }
    .quickReplies {
      @include padding2(0, 12px);
      @include flex-grow(1);
      padding-top: 4px !important;
      border-bottom: 1px solid #ccc;
      .replyContent {
        margin-bottom: 16px;
      }

    }
  }
}
.documentsQuickReplyDialog {
  .editForm {
    overflow: auto;
    @include padding-bottom(12px);
    div {
      @include flex-shrink(0);
    }
  }
  .documentsListItem {
    @include align-items(center);
    input {
      margin-right: 6px;
    }
  }
  .submitInfo {
    margin-bottom: 12px;
  }
}
.linkReply {
  @include padding2(6px, 8px);
  @include border-radius(4px);
  border: 1px solid #ccc;
  background: #fff;
  .linkTitle {
    height: 24px;
    line-height: 24px;
  }
  .linkContent {
    height: 32px;
    @include justify-content(space-between);
    @include align-items(center);
  }
  .linkDesc {
    @include align-self(flex-start);
  }
  .linkCover {
    width: 30px;
    height: 30px;
    background: #33ab9f;
  }
}
.imageReply {
  img {
    width: 60px !important;
    height: auto !important;
    background: #33ab9f;
    min-height: 40px;
  }
}
.contactReply,.officialAccountReply {
  border: 1px solid #ccc;
  @include border-radius(4px);
  .flex-row {
    padding: 12px 0 12px 12px;
    @include align-items(center);
    font-size: 16px;
  }
  .contactType {
    padding: 6px 0 6px 12px;
    border-top: 1px solid #ccc;
    font-size: 12px;
  }
  img {
    width: 40px;
    height: 40px;
    background: #33ab9f;
    margin-right: 6px;
    @include flex-shrink(0);
  }
}
.dialog {
  z-index: 111;
  .dialogContent {
    padding: 0 24px;
    box-sizing: border-box;
    overflow: auto;
  }
}
.video {
  background: #f1f1f1;
  position: relative;
  .play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%,-50%);
    background: image-url('vedio_placeholder.png');
    background-size: cover;
    cursor: pointer;
  }
}
.editorWrap {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  padding: 6px;
  box-sizing: border-box;
  position: relative;
  .richTextEditor {
    outline: none;
    overflow: auto;
    .placeholder {
      color: #999;
    }
    .emoji {
      width: 22px !important;
      height: 22px !important;
      background: none !important;
    }
  }
  .emojiContainer {
    position: absolute;
    bottom: 36px;
    left: 0;
    width: 100%;
    height: 190px;
    border: 1px solid #ccc;
    background: #fff;
    overflow: auto;
    @include padding2(12px, 16px);
    @include flex-wrap(wrap);
    .face {
      cursor: pointer;
      float: left;
      border: 1px solid #e8e8e8;
      height: 22px;
      width: 26px;
      overflow: hidden;
      margin: -1px 0 0 -1px;
      padding: 4px 2px;
      text-align: center;
    }
    img {
      width: 22px !important;
      height: 22px !important;
      background: none !important;
    }
    &.bottomPos {
      bottom: -190px;
    }
  }
  .tools {
    justify-content: space-between;
    flex-shrink: 0;
    .emojiSwitch {
      background-image: image-url('emoji.png');
      cursor: pointer;
      display: inline-block;
      width: 20px;
      height: 20px;
      background-size: cover;
      margin-right: 12px;
    }
  }
}
.pageHeader {
  @include padding2(16px, 32px);
  @include flex-shrink(0);
  @include justify-content(space-between);
  .headerTab button {
    margin-right: 12px;
  }
}
.textQuickReplyDialog {
  .editForm {
    height: 140px;
  }
}
.icon-search {
  @include padding-right(38px);
  background-image: image-url('search.png');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: top 9px right 9px;
}
.subTitle {
  font-size: 18px;
  font-weight: 200;
  margin-bottom: 12px;
}
.chatBox {
  @include padding2(12px, 24px);
  position: relative;
  overflow: auto;
  .chatItem {
    margin: 8px 0;
    position: relative;
    img {
      width: 40px;
      height: 40px;
      margin-right: 8px;
      @include flex-shrink(0);
    }
    .imageReply img{
      background: none;
      width: auto !important;
      max-width: 250px;
      height: auto;
    }
    .sendTime {
      position: absolute;
      bottom: 12px;
      right: 0;
      font-size: 12px;
    }
    .messageWrap {
      position: relative;
      &:hover {
        .qucikOperate {
          @include display-flex;
        }
      }
    }
    .messageWrap .messageItem {
      margin: 0;
    }

    .messageWrap .textReply{
      @include padding2(12px, 8px);
      @include border-radius(6px);
      background: #fff;
      border: 1px solid #ccc;
      max-width: 250px;
      word-break: break-all;
    }
    .sending {
      margin-top: 2px;
    }
    .qucikOperate {
      position: absolute;
      top: 0;
      right: -240px;
      display: none;
      div {
        width: 68px;
        height: 28px;
        text-align: center;
        line-height: 28px;
        background: #fff;
        border: 1px solid #ccc;
        margin-left: 12px;
        @include border-radius(4px);
      }
    }
    &.self {
      @include flex-direction(row-reverse);
      .messageWrap .textReply{
        background: #A0E75A;
      }
      .sendTime {
        position: absolute;
        bottom: 12px;
        left: 0;
      }
      img {
        margin-right: 0;
        margin-left: 8px;
      }
    }
  }
}
.operateTip {
  margin-top: 12px;
  background: #5FB878;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  @include padding4(8px,6px,6px, 12px);
  @include border-radius(4px);
}
